package com.suyuan.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FeedsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FeedsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFeedidIsNull() {
            addCriterion("FeedID is null");
            return (Criteria) this;
        }

        public Criteria andFeedidIsNotNull() {
            addCriterion("FeedID is not null");
            return (Criteria) this;
        }

        public Criteria andFeedidEqualTo(Integer value) {
            addCriterion("FeedID =", value, "feedid");
            return (Criteria) this;
        }

        public Criteria andFeedidNotEqualTo(Integer value) {
            addCriterion("FeedID <>", value, "feedid");
            return (Criteria) this;
        }

        public Criteria andFeedidGreaterThan(Integer value) {
            addCriterion("FeedID >", value, "feedid");
            return (Criteria) this;
        }

        public Criteria andFeedidGreaterThanOrEqualTo(Integer value) {
            addCriterion("FeedID >=", value, "feedid");
            return (Criteria) this;
        }

        public Criteria andFeedidLessThan(Integer value) {
            addCriterion("FeedID <", value, "feedid");
            return (Criteria) this;
        }

        public Criteria andFeedidLessThanOrEqualTo(Integer value) {
            addCriterion("FeedID <=", value, "feedid");
            return (Criteria) this;
        }

        public Criteria andFeedidIn(List<Integer> values) {
            addCriterion("FeedID in", values, "feedid");
            return (Criteria) this;
        }

        public Criteria andFeedidNotIn(List<Integer> values) {
            addCriterion("FeedID not in", values, "feedid");
            return (Criteria) this;
        }

        public Criteria andFeedidBetween(Integer value1, Integer value2) {
            addCriterion("FeedID between", value1, value2, "feedid");
            return (Criteria) this;
        }

        public Criteria andFeedidNotBetween(Integer value1, Integer value2) {
            addCriterion("FeedID not between", value1, value2, "feedid");
            return (Criteria) this;
        }

        public Criteria andGidIsNull() {
            addCriterion("GID is null");
            return (Criteria) this;
        }

        public Criteria andGidIsNotNull() {
            addCriterion("GID is not null");
            return (Criteria) this;
        }

        public Criteria andGidEqualTo(Integer value) {
            addCriterion("GID =", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotEqualTo(Integer value) {
            addCriterion("GID <>", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidGreaterThan(Integer value) {
            addCriterion("GID >", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidGreaterThanOrEqualTo(Integer value) {
            addCriterion("GID >=", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidLessThan(Integer value) {
            addCriterion("GID <", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidLessThanOrEqualTo(Integer value) {
            addCriterion("GID <=", value, "gid");
            return (Criteria) this;
        }

        public Criteria andGidIn(List<Integer> values) {
            addCriterion("GID in", values, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotIn(List<Integer> values) {
            addCriterion("GID not in", values, "gid");
            return (Criteria) this;
        }

        public Criteria andGidBetween(Integer value1, Integer value2) {
            addCriterion("GID between", value1, value2, "gid");
            return (Criteria) this;
        }

        public Criteria andGidNotBetween(Integer value1, Integer value2) {
            addCriterion("GID not between", value1, value2, "gid");
            return (Criteria) this;
        }

        public Criteria andFeednameIsNull() {
            addCriterion("FeedName is null");
            return (Criteria) this;
        }

        public Criteria andFeednameIsNotNull() {
            addCriterion("FeedName is not null");
            return (Criteria) this;
        }

        public Criteria andFeednameEqualTo(String value) {
            addCriterion("FeedName =", value, "feedname");
            return (Criteria) this;
        }

        public Criteria andFeednameNotEqualTo(String value) {
            addCriterion("FeedName <>", value, "feedname");
            return (Criteria) this;
        }

        public Criteria andFeednameGreaterThan(String value) {
            addCriterion("FeedName >", value, "feedname");
            return (Criteria) this;
        }

        public Criteria andFeednameGreaterThanOrEqualTo(String value) {
            addCriterion("FeedName >=", value, "feedname");
            return (Criteria) this;
        }

        public Criteria andFeednameLessThan(String value) {
            addCriterion("FeedName <", value, "feedname");
            return (Criteria) this;
        }

        public Criteria andFeednameLessThanOrEqualTo(String value) {
            addCriterion("FeedName <=", value, "feedname");
            return (Criteria) this;
        }

        public Criteria andFeednameLike(String value) {
            addCriterion("FeedName like", value, "feedname");
            return (Criteria) this;
        }

        public Criteria andFeednameNotLike(String value) {
            addCriterion("FeedName not like", value, "feedname");
            return (Criteria) this;
        }

        public Criteria andFeednameIn(List<String> values) {
            addCriterion("FeedName in", values, "feedname");
            return (Criteria) this;
        }

        public Criteria andFeednameNotIn(List<String> values) {
            addCriterion("FeedName not in", values, "feedname");
            return (Criteria) this;
        }

        public Criteria andFeednameBetween(String value1, String value2) {
            addCriterion("FeedName between", value1, value2, "feedname");
            return (Criteria) this;
        }

        public Criteria andFeednameNotBetween(String value1, String value2) {
            addCriterion("FeedName not between", value1, value2, "feedname");
            return (Criteria) this;
        }

        public Criteria andComponentIsNull() {
            addCriterion("Component is null");
            return (Criteria) this;
        }

        public Criteria andComponentIsNotNull() {
            addCriterion("Component is not null");
            return (Criteria) this;
        }

        public Criteria andComponentEqualTo(String value) {
            addCriterion("Component =", value, "component");
            return (Criteria) this;
        }

        public Criteria andComponentNotEqualTo(String value) {
            addCriterion("Component <>", value, "component");
            return (Criteria) this;
        }

        public Criteria andComponentGreaterThan(String value) {
            addCriterion("Component >", value, "component");
            return (Criteria) this;
        }

        public Criteria andComponentGreaterThanOrEqualTo(String value) {
            addCriterion("Component >=", value, "component");
            return (Criteria) this;
        }

        public Criteria andComponentLessThan(String value) {
            addCriterion("Component <", value, "component");
            return (Criteria) this;
        }

        public Criteria andComponentLessThanOrEqualTo(String value) {
            addCriterion("Component <=", value, "component");
            return (Criteria) this;
        }

        public Criteria andComponentLike(String value) {
            addCriterion("Component like", value, "component");
            return (Criteria) this;
        }

        public Criteria andComponentNotLike(String value) {
            addCriterion("Component not like", value, "component");
            return (Criteria) this;
        }

        public Criteria andComponentIn(List<String> values) {
            addCriterion("Component in", values, "component");
            return (Criteria) this;
        }

        public Criteria andComponentNotIn(List<String> values) {
            addCriterion("Component not in", values, "component");
            return (Criteria) this;
        }

        public Criteria andComponentBetween(String value1, String value2) {
            addCriterion("Component between", value1, value2, "component");
            return (Criteria) this;
        }

        public Criteria andComponentNotBetween(String value1, String value2) {
            addCriterion("Component not between", value1, value2, "component");
            return (Criteria) this;
        }

        public Criteria andSupplieridIsNull() {
            addCriterion("SupplierID is null");
            return (Criteria) this;
        }

        public Criteria andSupplieridIsNotNull() {
            addCriterion("SupplierID is not null");
            return (Criteria) this;
        }

        public Criteria andSupplieridEqualTo(Integer value) {
            addCriterion("SupplierID =", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridNotEqualTo(Integer value) {
            addCriterion("SupplierID <>", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridGreaterThan(Integer value) {
            addCriterion("SupplierID >", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridGreaterThanOrEqualTo(Integer value) {
            addCriterion("SupplierID >=", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridLessThan(Integer value) {
            addCriterion("SupplierID <", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridLessThanOrEqualTo(Integer value) {
            addCriterion("SupplierID <=", value, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridIn(List<Integer> values) {
            addCriterion("SupplierID in", values, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridNotIn(List<Integer> values) {
            addCriterion("SupplierID not in", values, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridBetween(Integer value1, Integer value2) {
            addCriterion("SupplierID between", value1, value2, "supplierid");
            return (Criteria) this;
        }

        public Criteria andSupplieridNotBetween(Integer value1, Integer value2) {
            addCriterion("SupplierID not between", value1, value2, "supplierid");
            return (Criteria) this;
        }

        public Criteria andAmountStoreIsNull() {
            addCriterion("Amount_Store is null");
            return (Criteria) this;
        }

        public Criteria andAmountStoreIsNotNull() {
            addCriterion("Amount_Store is not null");
            return (Criteria) this;
        }

        public Criteria andAmountStoreEqualTo(Float value) {
            addCriterion("Amount_Store =", value, "amountStore");
            return (Criteria) this;
        }

        public Criteria andAmountStoreNotEqualTo(Float value) {
            addCriterion("Amount_Store <>", value, "amountStore");
            return (Criteria) this;
        }

        public Criteria andAmountStoreGreaterThan(Float value) {
            addCriterion("Amount_Store >", value, "amountStore");
            return (Criteria) this;
        }

        public Criteria andAmountStoreGreaterThanOrEqualTo(Float value) {
            addCriterion("Amount_Store >=", value, "amountStore");
            return (Criteria) this;
        }

        public Criteria andAmountStoreLessThan(Float value) {
            addCriterion("Amount_Store <", value, "amountStore");
            return (Criteria) this;
        }

        public Criteria andAmountStoreLessThanOrEqualTo(Float value) {
            addCriterion("Amount_Store <=", value, "amountStore");
            return (Criteria) this;
        }

        public Criteria andAmountStoreIn(List<Float> values) {
            addCriterion("Amount_Store in", values, "amountStore");
            return (Criteria) this;
        }

        public Criteria andAmountStoreNotIn(List<Float> values) {
            addCriterion("Amount_Store not in", values, "amountStore");
            return (Criteria) this;
        }

        public Criteria andAmountStoreBetween(Float value1, Float value2) {
            addCriterion("Amount_Store between", value1, value2, "amountStore");
            return (Criteria) this;
        }

        public Criteria andAmountStoreNotBetween(Float value1, Float value2) {
            addCriterion("Amount_Store not between", value1, value2, "amountStore");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("Update_Time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("Update_Time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("Update_Time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("Update_Time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("Update_Time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("Update_Time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("Update_Time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("Update_Time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("Update_Time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("Update_Time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("Update_Time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("Update_Time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("Remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("Remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("Remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("Remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("Remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("Remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("Remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("Remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("Remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("Remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("Remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("Remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("Remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("Remark not between", value1, value2, "remark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}